package DesignPatterns.builderMode;

public class Test {
    public static void main(String[] args) {
        FrameConcreteBuilder frameConcreteBuilder=new FrameConcreteBuilder();
        SaddleConcreteBuilder saddleConcreteBuilder=new SaddleConcreteBuilder();
        BicycleBuilder bicycleBuilder=new BicycleConcreteBuilder(frameConcreteBuilder,saddleConcreteBuilder);
        Admin admin=new Admin(bicycleBuilder);
        System.out.println("生产的自行车材料为:");
        Bicycle bicycle = admin.makeBicycle("碳钎维", "橡胶");

        System.out.println(bicycle.toString());

    }
}
